<?php

define('ROOT', dirname(__FILE__));
function __autoload($class)
{
	$file = ROOT.'/'.ucfirst($class).'.php';
	if(file_exists($file))
		include $file;
}

$newspaper = new Newspaper('Newyort Times');

$allen = new Reader('Aller');
$jim = new Reader('Jim');
$linda = new Reader('Linda');

// add reader
$newspaper->attach($allen);
$newspaper->attach($jim);
$newspaper->attach($linda);

// remove reader
$newspaper->detach($linda);

// set breakouts news
$newspaper->breakOutNews('USA break down!');
